﻿using System.Collections.Generic;

namespace OneWorks.Utils.Metadata.Interface
{
    using Entity;

    /// <summary>
    /// 操作数据库
    /// </summary>
    public interface IDataBase
    {
        /// <summary>
        /// 获取所有数据库
        /// </summary>
        /// <returns></returns>
        List<Database> GetDataBases(bool include = false);

        /// <summary>
        /// 查找数据库
        /// </summary>
        /// <param name="dbName">数据库名称</param>
        /// <param name="include">是否包括表信息</param>
        /// <returns></returns>
        Database FindDataBase(string dbName, bool include = false);
    }
}
